package com.spring.bean.problem.cycleset;

import org.junit.Test;
import org.springframework.beans.BeansException;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;

/**
 * @ClassName: Main
 * @Author: suncx
 * @CreateDate: 2020-03-25 11:12
 * @Description:
 */

@ContextConfiguration(locations = { "classpath:log4j2.xml" })
public class Main {
    @Test
    public  void test() {
        try {
            ClassPathXmlApplicationContext cx = new ClassPathXmlApplicationContext("/bean/problem/CyclesetTestCyclesetTest.xml");
            System.out.println(cx.getBean("a"));
        } catch (BeansException e) {
            e.printStackTrace();
        }
    }
}
